home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / DynamicApp / DynamicApplication.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  66 lines

  1. // ----------------------------------------------------------------------------
  2. //
  3. // The following Class was written by Ed Hill (edhill@shumun.weeg.uiowa.edu)
  4. //
  5. // You are free to do whatever you want with this class, I accept no
  6. // responsibity for anything it screws up.  I currently use this Class in a 
  7. // number of my own applications, and it seems to be working fine, but I make
  8. // no promises.
  9. //
  10. // If you use this class, the only thing I ask for (no not money), is that you
  11. // leave my name in the source code somewhere (name a variable after me, 
  12. // something like if( Ed_Hill != acompleteidiot ) would be nice). Anndddd if
  13. // you make any modification to the source to improve it, could you please 
  14. // send me a copy through email (I get NeXT mail at the above address)
  15. //
  16. // ----------------------------------------------------------------------------
  17. #import <objc/Object.h>
  18. #import <appkit/Application.h>
  19.  
  20. @interface DynamicApplication:Application
  21. {
  22.     int            dynamicClassesNum;
  23.     id            dynamicClasses;
  24.     struct _errorFlags
  25.     {
  26.         BOOL        _errorOnLastLoad;
  27.     BOOL        _classLoaded;
  28.     unsigned int    _errorType;
  29.     }            errorFlags;
  30.     struct _lastClassInfo
  31.     {
  32.         char        *_className;
  33.     }            lastClassInfo;
  34. }
  35.  
  36. + new;
  37.  
  38. - init;
  39.  
  40. - loadClass:(char *)classPath;
  41. - loadClass:(char *)classPath withName:(char *)className;
  42.  
  43. - classWithName:(char *)className;
  44.  
  45. - getClassNameList:(char **)classList;
  46. - (int)classesNum;
  47.  
  48. - (char *)lastClassName;
  49. - lastClass;
  50.  
  51. - (BOOL)errorOnLastLoad;
  52. - (unsigned int)errorType;
  53. - (BOOL)classLoaded;
  54.  
  55. - removeClassWithName:(char *)className;
  56.  
  57. - free;
  58.  
  59. - _dynamicClassesHashTable;
  60. - _incrementDynamicClassesNum;
  61. - _decrementDynamicClassesNum;
  62. - _setLoadedClassInfo:(char *)className :(Class)aClass;
  63. - (unsigned int)_parseErrorStream:(NXStream *)aStream;
  64.  
  65. @end
  66.